<div class="col-md-12 col-sm-12 col-xs-12">
    <div class="x_panel">
        <div class="x_title">
            <h2>{$pri_name} <small></small></h2>
            <ul class="nav navbar-right panel_toolbox">
<!--                {:check_create('create',['type_id'=>input('type_id')])}-->
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="x_content">
            <p class="text-muted font-13 m-b-30">
                <code>说明:</code>{$code}
            </p>
            <form id="search" action="{:url('index')}" />
<!--            {foreach :input() as $key => $value}-->
<!--            <input type="hidden" name="{$key}" class="form-control" value="{$value}">-->
<!--            {/foreach}-->
            <input type="hidden" name="page" value="1"/>
            <div class="well" style="overflow: auto">
<!--                <div class="col-md-2">-->
<!--                    <input type="text" name="title" autocomplete="off" class="form-control" placeholder="请输入搜索内容..." value="{:input('title')}">-->
<!--                </div>-->
                <div class="col-md-2" style="width: 180px;">
                    <select name="member_id" class="select2 js-states form-control"  style="width: 100%;">
                        <option value="0">全部会员</option>
                        {volist name="$member" id="item"}
                        <option value="{$item.id}" {eq name=":input('member_id')" value="$item.id"}selected{/eq}>{$item.mobile}</option>
                        {/volist}
                    </select>
                </div>
                <div class="col-md-1">
                    <select name="type_id" class="select2 js-states form-control"  style="width: 100%;">
                        <option value="0">提现方式</option>
                        <option value="1" {eq name=":input('type_id')" value="1"}selected{/eq}>微信</option><option value="2" {eq name=":input('type_id')" value="2"}selected{/eq}>支付宝</option><option value="3" {eq name=":input('type_id')" value="3"}selected{/eq}>银行卡</option>
                    </select></div>                <div class="col-md-1">
                    <select name="audit_status" class="select2 js-states form-control"  style="width: 100%;">
                        <option value="0">审核状态</option>
                        <option value="1" {eq name=":input('audit_status')" value="1"}selected{/eq}>待审核</option><option value="2" {eq name=":input('audit_status')" value="2"}selected{/eq}>审核成功</option><option value="3" {eq name=":input('audit_status')" value="3"}selected{/eq}>审核失败</option>
                    </select>
                </div>
                <div class="col-md-2">
                    <input type="text" name="create_time" autocomplete="off" class="form-control" id="interval_timer" style="width: 100%" placeholder="请选择时间区间..." value="{:input('create_time')}">
                </div>

                <div class="col-md-1">
                    <button type="submit" class="btn btn-success">搜 索</button>
                </div>
            </div>
            </form>
            <div style="overflow: auto">
                <table id="datatables" class="table table-striped table-bordered">
                    <thead>
                    <tr>
                        <!--<th><input type="checkbox" onclick="CheckAll(this.checked)"></th></th>-->
                        <th>
                        <input type="checkbox" onclick="CheckAll(this.checked)"></th>
                    </th>
                        <th width="40" style="text-align: center;">ID</th>
                        <th >会员</th>
                        <th >提现方式</th>

                        <th >提现账号</th>
                        <th >提现佣金</th>
                        <th >实付佣金(去手续费)</th>
                        <th >提现姓名</th>
                        <th >提现银行</th>
                        <th >开户行地址</th>
                        <th >订单号</th>
<!--                        <th >操作前</th>-->
<!--                        <th >操作后</th>-->
                        <th width="140">创建时间</th>
                        <th >提现状态</th>
                        <th width="80">操作</th>

                    </tr>
                    </thead>

                    <form id="form_volist">
                     <tbody>
                        {volist name="data" id="vo"}
                        <tr>
                            <th width="20">
                        <input type="checkbox" name="id[]" value="{$vo.id}"/>
                    </th>
                            <td width="40" style="text-align: center;">{$vo.id}</td>
                            <td>{$vo.member_mobile}</td>
                            <td>{$vo.type_title}</td>

                            <td>{:strLength($vo.withdraw_no,12)}</td>
                            <td>{$vo.brokerage}</td>
                            <td>{$vo.brokerage-$vo.add_brokerage}</td>
                            <td>{$vo.withdraw_name}</td>
                            <td>{$vo.withdraw_bank}</td>
                            <td>{:strLength($vo.withdraw_address,12)}</td>
<!--                            <td>{$vo.before}</td>-->
<!--                            <td>{$vo.after}</td>-->
                            <td>{$vo.order_number}</td>
                            <td>{$vo.create_time}</td>
                            <td>{$vo.audit_title}</td>
                            <td >
                                {in name="vo.type_id" value="3,2,1"}
                                {:audit_button('audit_status',$vo.id,$vo.audit_status,$vo.audit_title)}
                                {/in}
                                {if $vo.type_id==3 && $vo.audit_status==1}
                                {:check_update('update',['id' => $vo.id])}
                                {/if}
                            </td>
<!--                            <td>-->
<!--                                {eq name="$vo.audit_status" value="1"}-->
<!--                                {:check_update('update',['id' => $vo.id])}-->
<!--                                {/eq}-->
<!--                            </td>-->

                        </tr>
                        {eq name="$vo.audit_status" value="3"}
                        <tr>
                            <td colspan="100">失败原因 : {$vo.error_msg}</td>
                        </tr>
                        {/eq}
                        {/volist}
                    </tbody>
                        <tfoot align="left">
                        <tr>
                            <td colspan="100">
                                <span>控制：</span>
                                <a href="{:session(request()->controller().'_url_excel')}" style="color:#428BCA;cursor: pointer" >导出数据</a>
                            </td>
                        </tr>
                        </tfoot>
                    </form>

                        <script>
                            $('#upload').click(function () {
                                $("#read").submit();
                            });
                        </script>
                    <tfoot align="left">

                    </tfoot>

                </table>
            </div>

            <div style="text-align: right;">{$data|raw}</div>
        </div>
    </div>
</div>


